﻿namespace AutoRevit.Entry.Command;

/// <summary>
/// 拦截器扩展
/// </summary>
public interface IInterceptorExtend : IAutoRevtExtend
{
    /// <summary>
    /// 拦截器
    /// </summary>
    List<IExternalCommandInterceptor> Interceptors { get; set; }

    /// <summary>
    /// 允许拦截器执行
    /// </summary>
    /// <param name="revitData"></param>
    /// <returns></returns>
    bool CanInterceptorExecute(IRevitData revitData);
}
